package org.bjou

//课程
		

class Course {
    //规则号	
    String ruleCode
    //专业名称
    String majorName
    
    //课程ID	*
    String courseId
    //课程名称*
    String courseName
    //学分	
    BigDecimal credit
    
    //课程类型 统设/非统设
    String courseType

    //课程性质 必修/必修（省）/选修
    String courseProperty
	
    //考试单位类型	* 中央/省
    String examType
    
    //开课学期
    Integer courseTerm
    
    //入学学期
    String entryTerm
    
    //试卷号
    String examNumber	
    //试卷号B
    String examNumberB
    
    //系部 计划科人员手工维护
    String departmentName
    //专业层次 *	开专/开本
    String majorLevel

    //课程状态 正开/可考/不可考/正开拟不开设/禁开拟不开设
    String courseStatus
    
    //当前学期
   String currentTerm
   
   Integer status

    Date dateCreated
    Date lastUpdated
    
    
    String courseYear
    String courseSeason
    
    //系部信息
    static belongsTo = [department: Department]
    
    
    
    
   
    static constraints = {
        credit(nullable: true, blank: true)
        ruleCode(nullable: true, blank: true)
        courseType(nullable: true, blank: true)
        courseProperty(nullable: true, blank: true)
        courseId(nullable: true, blank: true)
        courseName(nullable: true, blank: true)
        credit(nullable: true, blank: true)
        courseType(nullable: true, blank: true)
        courseProperty(nullable: true, blank: true)
        examType(nullable: true, blank: true)
        courseTerm(nullable: true, blank: true)
        entryTerm(nullable: true, blank: true)
        examNumber(nullable: true, blank: true)
        examNumberB(nullable: true, blank: true)
        department(nullable: true, blank: true)
        majorLevel(nullable: true, blank: true)
        courseStatus(nullable: true, blank: true)
        currentTerm(nullable: true, blank: true)
        departmentName(nullable: true, blank: true)
        courseYear(nullable: true, blank: true)
        courseSeason(nullable: true, blank: true)
        status(nullable: true, blank: true)
        
        
        
    }
}
